package  
{
	import com.demonsters.debugger.MonsterDebugger;
	import flash.display.Sprite;
	import flash.events.MouseEvent;
	import flash.external.ExternalInterface;
	
	
	/**
	 * ...
	 * @author ...
	 */
	public class Wrapper extends Sprite 
	{
		private var button:Sprite;	
		
		public function Wrapper() 
		{
			init();
			
			MonsterDebugger.initialize(this);
		}
		
		private function init():void
		{
			button = new Sprite;
			button.buttonMode = true;
			button.graphics.beginFill(0xffffff, 0.8);
			button.graphics.drawRect(0, 0, 200, 20);
			button.graphics.endFill();
			button.addEventListener(MouseEvent.CLICK, onClick);
			
			addChild(button);
		}
		
		private function onClick(e:MouseEvent):void 
		{
			if (ExternalInterface.available)
			{
				MonsterDebugger.trace(this, );
				
				ExternalInterface.call('sendWrap');
			}
		}
	}
}